package vo;

public class News {
    //属性：编号，标题，链接地址，作者，发稿时间，浏览人数
    private int id;//编号
    private String title;  //新闻标题
    private String address;  //链接地址
    private String author;  //作者
    private String fabushijian;  //发稿时间
    private int click;  //点击数
    public News() {
        super();
    }
    public News(int id,String title,String address,String author,String fabushijian,int click) {
        super();
        this.id = id;
        this.title = title;
        this.address = address;
        this.author = author;
        this.fabushijian = fabushijian;
        this.click = click;
    }
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public int getClick() {
        return click;
    }
    public void setClick(int click) {
        this.click = click;
    }
    public String getFabushijian() {
        return fabushijian;
    }
    public void setFabushijian(String fabushijian) {
        this.fabushijian = fabushijian;
    }
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String writer) {
        this.author = author;
    }
    @Override
    public String toString() {
        return id + "|" + title + "|" + address + "|" + author + "|" + fabushijian + "|" + click;
    }
}
